package com.winsdom.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 抄表记录表
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
@Data
@Accessors(chain = true)
@TableName("reading_record")
public class ReadingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 抄表任务ID
     */
    private Integer taskId;

    /**
     * 三表ID
     */
    private Integer tableId;

    /**
     * 上期抄表时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime lastReadTime;

    /**
     * 上期读数
     */
    private Integer lastReading;

    /**
     * 本期抄表时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime readTime;

    /**
     * 本期读数(即用户已填写本期读数  视为已抄)
     */
    private Integer currentReading;

    /**
     * 0: 未计费, 1: 已计费
     */
    private Integer status;


}
